<?php
//preg_match_all( "/[\d]{4,}/i", 'iuiouiouilkjjkj-090998 987989898 ', $words );
//echo '<pre>';print_r($words);echo '</pre>';
?>
<?php
   $x = "$1,345.45";
   $x = preg_replace("/[$,.]/","",$x);
   echo $x;
?>